<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ResourceFolderAddEdit.ascx.cs" Inherits="IGlobalist.Cms.Admin.Control.ResourceFolderAddEdit" %>
<%@ Register Src="CmsExtPropertiesForm.ascx" TagName="CmsExtPropertiesForm" TagPrefix="uc1" %>
<asp:HiddenField runat="server" ID="hdfResourceFolderID" Value="0" />
<table  id="tblNewRFolder" runat="server" >
    <tr>
        <td align="center">
        <asp:Label ID="lblStatus" runat="server" Font-Bold="True" Font-Size="Medium" ForeColor="#1A5688"></asp:Label>
        </td>
    </tr>
    <tr>    
        <td>
        
        <asp:ValidationSummary ID="ValidationSummary1" runat="server" ShowMessageBox="true" />            
        <fieldset id="fsMain" runat="server">
            <legend><asp:Label ID="lbMain"  runat="server"  Text="Main Properties"></asp:Label> </legend>
                <table cellpadding="2" cellspacing="2">                   
                    <tr>
                        <td>
                            <asp:Label ID="lbClassName" runat="server" Text="Folder Class"></asp:Label>
                        </td>
                        <td>
                            <asp:DropDownList ID="ddlClassName" runat="server" DataTextField="Name" DataValueField="ID" AutoPostBack="True" OnSelectedIndexChanged="ddlClassName_SelectedIndexChanged" ></asp:DropDownList>
                            <asp:Label ID="lbError" runat="server" Font-Size="8pt" ForeColor="Red"></asp:Label></td>
                    </tr>
                    <tr>
                        <td>
                            <asp:Label ID="lbName" runat="server" Text="Name"></asp:Label>
                        </td>
                        <td>
                            <asp:TextBox ID="tbName" runat="server"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="rfvName" runat="server" ErrorMessage="You must enter name" ControlToValidate="tbName" >*</asp:RequiredFieldValidator>                             
                        </td>
                    </tr>
                    <tr>
                        <td valign="top">
                            <asp:Label ID="lbDescription" runat="server" Text="Description"></asp:Label>
                        </td>
                        <td>
                            <asp:TextBox ID="tbDescription" runat="server" Rows="4" Height="100px" TextMode="MultiLine"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:Label ID="lbParent" runat="server" Text="Parent"></asp:Label>  
                        </td>
                        <td>
                            <asp:DropDownList ID="ddlParent" runat="server" DataTextField="Name" DataValueField="ID" DataSourceID="ODSResFolder">
                            
                            </asp:DropDownList><asp:ObjectDataSource ID="ODSResFolder" runat="server" SelectMethod="GetResourceFolderTreeForBind"
                                TypeName="IGlobalist.Cms.Bll.ResourceFolderController">
                                <SelectParameters>
                                    <asp:ControlParameter ControlID="hdfResourceFolderID" DefaultValue="0" Name="resourceFolderID"
                                        PropertyName="Value" Type="Int64" />
                                </SelectParameters>
                            </asp:ObjectDataSource>
                        </td>
                    </tr>                       
               </table>   
        </fieldset> 
        </td>
    </tr>
    <tr>
        <td>
            <fieldset id="fsExt" runat="server" visible="false">
                <legend><asp:Label ID="lbExt"  runat="server"  Text="Ext Properties"></asp:Label> </legend>               
                <uc1:CmsExtPropertiesForm ID="ucCmsExtPropertiesForm" runat="server" />
            </fieldset> 
        </td>
    </tr>
</table> 
